package environment;

public class ScreenConstants 
{
	public static final int DEFAULT_SCREEN_WIDTH = 1250;
	public static final int DEFAULT_SCREEN_HEIGHT = 720;
	public static int SCREEN_WIDTH = DEFAULT_SCREEN_WIDTH;
	public static int SCREEN_HEIGHT = DEFAULT_SCREEN_HEIGHT;
	
	public static int MAX_X = DEFAULT_SCREEN_WIDTH;
	public static int MAX_Y = DEFAULT_SCREEN_HEIGHT;
	public static int MIN_X = 0;
	public static int MIN_Y = 0;
	
	public static boolean isOutOfScreen(int x, int y) 
	{
		return x < MIN_X || x > MAX_X || y < MIN_Y || y > MAX_Y;
	}
	
	public static boolean isOutOfScreen(java.awt.Point p) 
	{
		return p.x < MIN_X || p.x > MAX_X || p.y < MIN_Y || p.y > MAX_Y;
	}
	
	public static void setScreen(int w, int h)
	{
		SCREEN_WIDTH = w;
		SCREEN_HEIGHT = h;
		MAX_X = w;
		MAX_Y = h-5;
	}
}
